You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.InvSqrt Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.InvSqrt Method

The inverse of square root 1/(v)^1/2.

Syntax
C#
Visual Basic
public TOpenCLValue InvSqrt([In] TOpenCLValue X);

Calculate the inverse square root 1/(element)^(1/2)) of X.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLValue a,b; clMtxVec.CreateIt(out a, out b); try { b.Copy(2.3); a.InvCbrt(b); // a = 2.3^(1/3) } finally { clMtxVec.FreeIt(ref a, ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!